
<%@ page import="activity.Serial" %>
<!DOCTYPE html>
<html>
	<head>
		<meta name="layout" content="backend">
		<g:set var="entityName" value="${message(code: 'serial.label', default: 'Serial')}" />
		<title><g:message code="default.show.label" args="[entityName]" /></title>
	</head>
	<body>
		<a href="#show-serial" class="skip" tabindex="-1"><g:message code="default.link.skip.label" default="Skip to content&hellip;"/></a>
		<div class="gnav" role="navigation">
			<ul>
				<li><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></li>
				<li><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></li>
			</ul>
		</div>
		<div id="show-serial" class="content scaffold-show" role="main">
			<h1><g:message code="default.show.label" args="[entityName]" /></h1>
			<g:if test="${flash.message}">
			<div class="message" role="status">${flash.message}</div>
			</g:if>
			<ol class="property-list serial">
			
				<g:if test="${serialInstance?.name}">
				<li class="fieldcontain">
					<span id="name-label" class="property-label"><g:message code="serial.name.label" default="Name" /></span>
					
						<span class="property-value" aria-labelledby="name-label"><g:fieldValue bean="${serialInstance}" field="name"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${serialInstance?.host}">
				<li class="fieldcontain">
					<span id="host-label" class="property-label"><g:message code="serial.host.label" default="Host" /></span>
					
						<span class="property-value" aria-labelledby="host-label"><g:fieldValue bean="${serialInstance}" field="host"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${serialInstance?.url}">
				<li class="fieldcontain">
					<span id="url-label" class="property-label"><g:message code="serial.url.label" default="Url" /></span>
					
						<span class="property-value" aria-labelledby="url-label"><g:fieldValue bean="${serialInstance}" field="url"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${serialInstance?.memo}">
				<li class="fieldcontain">
					<span id="memo-label" class="property-label"><g:message code="serial.memo.label" default="Memo" /></span>
					
						<span class="property-value" aria-labelledby="memo-label"><g:fieldValue bean="${serialInstance}" field="memo"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${serialInstance?.tel}">
				<li class="fieldcontain">
					<span id="tel-label" class="property-label"><g:message code="serial.tel.label" default="Tel" /></span>
					
						<span class="property-value" aria-labelledby="tel-label"><g:fieldValue bean="${serialInstance}" field="tel"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${serialInstance?.fax}">
				<li class="fieldcontain">
					<span id="fax-label" class="property-label"><g:message code="serial.fax.label" default="Fax" /></span>
					
						<span class="property-value" aria-labelledby="fax-label"><g:fieldValue bean="${serialInstance}" field="fax"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${serialInstance?.email}">
				<li class="fieldcontain">
					<span id="email-label" class="property-label"><g:message code="serial.email.label" default="Email" /></span>
					
						<span class="property-value" aria-labelledby="email-label"><g:fieldValue bean="${serialInstance}" field="email"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${serialInstance?.staff}">
				<li class="fieldcontain">
					<span id="staff-label" class="property-label"><g:message code="serial.staff.label" default="Staff" /></span>
					
						<span class="property-value" aria-labelledby="staff-label"><g:fieldValue bean="${serialInstance}" field="staff"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${serialInstance?.code}">
				<li class="fieldcontain">
					<span id="code-label" class="property-label"><g:message code="serial.code.label" default="Code" /></span>
					
						<span class="property-value" aria-labelledby="code-label"><g:fieldValue bean="${serialInstance}" field="code"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${serialInstance?.nameEng}">
				<li class="fieldcontain">
					<span id="nameEng-label" class="property-label"><g:message code="serial.nameEng.label" default="Name Eng" /></span>
					
						<span class="property-value" aria-labelledby="nameEng-label"><g:fieldValue bean="${serialInstance}" field="nameEng"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${serialInstance?.hostEng}">
				<li class="fieldcontain">
					<span id="hostEng-label" class="property-label"><g:message code="serial.hostEng.label" default="Host Eng" /></span>
					
						<span class="property-value" aria-labelledby="hostEng-label"><g:fieldValue bean="${serialInstance}" field="hostEng"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${serialInstance?.status}">
				<li class="fieldcontain">
					<span id="status-label" class="property-label"><g:message code="serial.status.label" default="Status" /></span>
					
						<span class="property-value" aria-labelledby="status-label"><g:link controller="status" action="show" id="${serialInstance?.status?.id}">${serialInstance?.status?.encodeAsHTML()}</g:link></span>
					
				</li>
				</g:if>
			
				<g:if test="${serialInstance?.type}">
				<li class="fieldcontain">
					<span id="type-label" class="property-label"><g:message code="serial.type.label" default="Type" /></span>
					
						<span class="property-value" aria-labelledby="type-label"><g:fieldValue bean="${serialInstance}" field="type"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${serialInstance?.eventCounts}">
				<li class="fieldcontain">
					<span id="eventCounts-label" class="property-label"><g:message code="serial.eventCounts.label" default="Event Counts" /></span>
					
						<span class="property-value" aria-labelledby="eventCounts-label"><g:fieldValue bean="${serialInstance}" field="eventCounts"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${serialInstance?.dateStart}">
				<li class="fieldcontain">
					<span id="dateStart-label" class="property-label"><g:message code="serial.dateStart.label" default="Date Start" /></span>
					
						<span class="property-value" aria-labelledby="dateStart-label"><g:formatDate date="${serialInstance?.dateStart}" /></span>
					
				</li>
				</g:if>
			
				<g:if test="${serialInstance?.dateEnd}">
				<li class="fieldcontain">
					<span id="dateEnd-label" class="property-label"><g:message code="serial.dateEnd.label" default="Date End" /></span>
					
						<span class="property-value" aria-labelledby="dateEnd-label"><g:formatDate date="${serialInstance?.dateEnd}" /></span>
					
				</li>
				</g:if>
			
				<g:if test="${serialInstance?.regStart}">
				<li class="fieldcontain">
					<span id="regStart-label" class="property-label"><g:message code="serial.regStart.label" default="Reg Start" /></span>
					
						<span class="property-value" aria-labelledby="regStart-label"><g:formatDate date="${serialInstance?.regStart}" /></span>
					
				</li>
				</g:if>
			
				<g:if test="${serialInstance?.regEnd}">
				<li class="fieldcontain">
					<span id="regEnd-label" class="property-label"><g:message code="serial.regEnd.label" default="Reg End" /></span>
					
						<span class="property-value" aria-labelledby="regEnd-label"><g:formatDate date="${serialInstance?.regEnd}" /></span>
					
				</li>
				</g:if>
			
				<g:if test="${serialInstance?.capacityQty}">
				<li class="fieldcontain">
					<span id="capacityQty-label" class="property-label"><g:message code="serial.capacityQty.label" default="Capacity Qty" /></span>
					
						<span class="property-value" aria-labelledby="capacityQty-label"><g:fieldValue bean="${serialInstance}" field="capacityQty"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${serialInstance?.standbyQty}">
				<li class="fieldcontain">
					<span id="standbyQty-label" class="property-label"><g:message code="serial.standbyQty.label" default="Standby Qty" /></span>
					
						<span class="property-value" aria-labelledby="standbyQty-label"><g:fieldValue bean="${serialInstance}" field="standbyQty"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${serialInstance?.registerQty}">
				<li class="fieldcontain">
					<span id="registerQty-label" class="property-label"><g:message code="serial.registerQty.label" default="Register Qty" /></span>
					
						<span class="property-value" aria-labelledby="registerQty-label"><g:fieldValue bean="${serialInstance}" field="registerQty"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${serialInstance?.history}">
				<li class="fieldcontain">
					<span id="history-label" class="property-label"><g:message code="serial.history.label" default="History" /></span>
					
						<span class="property-value" aria-labelledby="history-label"><g:link controller="history" action="show" id="${serialInstance?.history?.id}">${serialInstance?.history?.encodeAsHTML()}</g:link></span>
					
				</li>
				</g:if>
			
				<g:if test="${serialInstance?.events}">
				<li class="fieldcontain">
					<span id="events-label" class="property-label"><g:message code="serial.events.label" default="Events" /></span>
					
						<g:each in="${serialInstance.events}" var="e">
						<span class="property-value" aria-labelledby="events-label"><g:link controller="event" action="show" id="${e.id}">${e?.encodeAsHTML()}</g:link></span>
						</g:each>
					
				</li>
				</g:if>
			
			</ol>
			<g:form>
				<fieldset class="buttons">
					<g:hiddenField name="id" value="${serialInstance?.id}" />
					<g:link class="edit" action="edit" id="${serialInstance?.id}"><g:message code="default.button.edit.label" default="Edit" /></g:link>
					<g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" />
				</fieldset>
			</g:form>
		</div>
	</body>
</html>
